package br.unifacs.mda.plugin.psm.java.importation;

import psmjava.JavaProject;

public class ControllerJava {

/* ---------- Attributes ---------- */
    
    private static ControllerJava controllerJava;
    
    private JavaProject javaProject;
    
    /* ---------- Associations ---------- */
    
    /* ---------- Constructors ---------- */
    
    /** Creates a new instance of Controller */
    private ControllerJava() {
    }
    
    /* ---------- Gets and Setters ---------- */
    
    public JavaProject getProject() {
        return this.javaProject;
    }
    
    public void setProject(JavaProject javaProject) {
        this.javaProject = javaProject;
    }
    
    /* ---------- Public Methods ---------- */
    
    public static synchronized ControllerJava getInstance(Boolean newInstance){
        if(controllerJava == null || newInstance) {
        	controllerJava = new ControllerJava();
        }
        return controllerJava;
    }
    
    /* ---------- Private Methods ---------- */
}
